package cn.edu.sgu.www.mhxysy.service.qiling.impl;

import cn.edu.sgu.www.mhxysy.entity.qiling.QilingTaozhuangType;
import cn.edu.sgu.www.mhxysy.mapper.qiling.QilingTaozhuangTypeMapper;
import cn.edu.sgu.www.mhxysy.service.qiling.QilingTaozhuangTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 沐雨橙风ιε
 * @version 1.0
 */
@Service
public class QilingTaozhuangTypeServiceImpl implements QilingTaozhuangTypeService {

    private final QilingTaozhuangTypeMapper qilingTaozhuangTypeMapper;

    @Autowired
    public QilingTaozhuangTypeServiceImpl(QilingTaozhuangTypeMapper qilingTaozhuangTypeMapper) {
        this.qilingTaozhuangTypeMapper = qilingTaozhuangTypeMapper;
    }

    @Override
    public List<QilingTaozhuangType> selectAll() {
        return qilingTaozhuangTypeMapper.selectList(null);
    }

    @Override
    public QilingTaozhuangType selectById(Integer id) {
        return qilingTaozhuangTypeMapper.selectById(id);
    }

}